package com.xinshujia.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.google.gson.annotations.JsonAdapter;
import com.xinshujia.adapter.LocalDateTimeAdapter;

import java.time.LocalDateTime;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-08-07 09:22       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 *     与硬件交互的实体类
 */
@TableName("device_function")
public class FunctionEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String deviceGuid;
    private String functionCommand;
    private String functionResult;
    private Integer functionExecuted;
    @JsonAdapter(LocalDateTimeAdapter.class)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime creaetTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceGuid() {
        return deviceGuid;
    }

    public void setDeviceGuid(String deviceGuid) {
        this.deviceGuid = deviceGuid;
    }

    public String getFunctionCommand() {
        return functionCommand;
    }

    public void setFunctionCommand(String functionCommand) {
        this.functionCommand = functionCommand;
    }

    public String getFunctionResult() {
        return functionResult;
    }

    public void setFunctionResult(String functionResult) {
        this.functionResult = functionResult;
    }

    public Integer getFunctionExecuted() {
        return functionExecuted;
    }

    public void setFunctionExecuted(Integer functionExecuted) {
        this.functionExecuted = functionExecuted;
    }

    public LocalDateTime getCreaetTime() {
        return creaetTime;
    }

    public void setCreaetTime(LocalDateTime creaetTime) {
        this.creaetTime = creaetTime;
    }
}
